package com.sunyard.dal.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 权限添加请求参数
 *
 * @author guangw.dang
 * @Classname RoleAddDTO
 * @Date 2022/2/24 10:14
 */
@Data
public class PopedomAddReqDTO {

    /**
     * 父级菜单Id
     */
    @ApiModelProperty(value = "父级菜单Id，如果为以及菜单，则填0")
    @NotBlank(message = "父级菜单Id不能为空")
    private String popedomPid;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称")
    @Size(max = 64, message = "菜单名称不超过64位")
    private String popedomName;

    /**
     * 菜单路径
     */
    @ApiModelProperty(value = "菜单路由")
    private String popedomLink;

    /**
     * 菜单图标
     */
    @ApiModelProperty(value = "菜单图标，当菜单为一级菜单时必填")
    private String popedomIconcls;

    /**
     * 按钮列表
     */
    @ApiModelProperty(value = "按钮列表")
    private List<ButtonAddReqDTO> buttonList;


}
